package ${package.Mapper};

import org.apache.ibatis.annotations.Mapper;
import ${package.Entity}.${entity};
import ${cfg.package}.vo.query.${entity}QryVO;
import ${cfg.package}.vo.response.${entity}RepVO;

import java.util.List;

/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
@Mapper
public interface ${table.mapperName} {

    /**
     * ${table.comment!}  详情查询
     *
     * @param id
     * @return ${entity}RepVO
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    ${entity}RepVO get(long id);

    /**
     * ${table.comment!}  列表查询
     *
     * @param qryVO
     * @return List<${entity}RepVO>
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    List<${entity}RepVO> list(${entity}QryVO qryVO);

    /**
     * ${table.comment!}  新增
     *
     * @param entity
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    void save(${entity} entity);

    /**
     * ${table.comment!}  修改
     *
     * @param entity
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    void update(${entity} entity);

}
</#if>
